//
// Created by ASUS on 24-4-14.
//

#ifndef SQLIST_H
#define SQLIST_H

#define MaxSize 100
#define ElemType int

typedef struct
{
    ElemType data[MaxSize];
    int length;
}SqList;


void SqList_Init(SqList *);


int SqList_LocateElem(SqList l, ElemType e);


ElemType SqList_GetElem(SqList l, int i);


int SqList_Insert(SqList *L, int j, ElemType e);


ElemType SqList_Delete(SqList *L, int i, ElemType *e);


void SqList_Print(SqList L);


int SqList_Empty(SqList l);

#endif //SQLIST_H
